import request from '../utils/request'

export function requestAddFootPrint ( proid) {
    return new Promise(resolve => {
        request.post('/footprint/add', {
            userid:localStorage.getItem('userid')||'',
            proid
        }).then(res => {
            resolve(res.data)
        })
    })
}

export function requestGetFootPrint (timeStamp) {
    return new Promise(resolve => {
        request.get('/footprint/list', {
            params: {
                userid:localStorage.getItem('userid')||'',
                timeStamp
            }
        }).then(res => {
            resolve(res.data)
        })
    })
}
